import request from '@/utils/request';

/**
 * 查询异常流程查询列表
 * @param query
 * @returns {*}
 */

export const listAffair = (query)=> {
  return request({
    url: '/system/affair/list',
    method: 'get',
    params: query
  });
};

/**
 * 查询异常流程查询详细
 * @param ID
 */
export const getAffair = (ID) => {
  return request({
    url: '/system/affair/' + ID,
    method: 'get'
  });
};

/**
 * 新增异常流程查询
 * @param data
 */
export const addAffair = (data) => {
  return request({
    url: '/system/affair',
    method: 'post',
    data: data
  });
};

/**
 * 修改异常流程查询
 * @param data
 */
export const updateAffair = (data) => {
  return request({
    url: '/system/affair',
    method: 'put',
    data: data
  });
};

/**
 * 删除异常流程查询
 * @param ID
 */
export const delAffair = (ID) => {
  return request({
    url: '/system/affair/' + ID,
    method: 'delete'
  });
};
